package cn.laixueit.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
@RequestMapping("/to")
public class ToPage {

    // to/studentList

    @RequestMapping("/{pagename}") //studentList
    public String topage(@PathVariable("pagename")String pagename){

        return pagename; // /WEB-INF/pages/studentList.jsp
    }
}
